package com.jichaoyun.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.sql.Time;

@Data
public class StationParametersVo {
    private Integer stationNo;

    /**
     * 站点名称
     */
    private String stationName;

    /**
     * 是否使用
     */
    private Boolean isUse;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 线路类型id
     */
    private Integer lineId;

    /**
     * 总表/分表类型 1分表 0 总表
     */
    private Integer userType;

    /**
     * 通讯类型
     */
    private String comType;
    /**
     * 仪表类型
     */
    private String ybType;

    /**
     * 仪表地址编号
     */
    private Integer addr;

    /**
     * gprs编号
     */
    private String gprsId;

    /**
     * 温度量程
     */
    private Float trange;

    /**
     * 压力量程
     */
    private Float prange;

    /**
     * 流量量程
     */
    private Float frange;

    /**
     * 流量下限报警
     */
    private Float fdowna;
    private Float fdowna2;
    /**
     * 温度上限报警
     */
    private Float tupa;
    private Float tupa2;

    /**
     * 温度下限报警
     */
    private Float tdowna;
    private Float tdowna2;
    /**
     * 压力上限报警
     */
    private Float pupa;
    private Float pupa2;
    /**
     * 压力上限报警
     */
    private Float pdowna;
    private Float pdowna2;

    /**
     * 流量上限报警
     */
    private Float fupa;
    private Float fupa2;

    /**
     * 是否是主要用户
     */
    private Boolean isMaster;

    /**
     * 低计量流量，每小时最小消费
     */
    private Float minConsume;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 余额预警
     */
    private BigDecimal balanceAlarm;

    /**
     * 最大透支
     */
    private BigDecimal maxOverdraft;

    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
    private Time sentTimeStart;

    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
    private Time sentTimeEnd;

    private int comPassword;

    private String tel;

    private Float fredowna;

    private Float freupa;
    private Float fredowna2;

    private Float freupa2;

    private String bankCardNumber;

    private Boolean isFre;
    /**
     * 口径
     */
    private float caliber;

}
